Ignore packets that aren't A800's.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 27 Apr 2006 02:56:24 +0000 (02:56 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Thu, 27 Apr 2006 02:56:24 +0000 (02:56 +0000)
gpsbabel/jeeps/gpsapp.c

index 967c95b835f22d96d4b386cada8972793eb32d68..dbe5dc422a1c45c1ff5e30b227b74e57f1f12dfd 100644 (file)
@@ -5918,6 +5918,10 @@ int32 GPS_A800_Get(gpsdevh **fd, GPS_PPvt_Data *packet)
     
     if(!GPS_Send_Ack(*fd, &tra, &rec))
        return gps_errno;
+
+    if (rec->type != LINK_ID[gps_link_type].Pid_Pvt_Data) {
+       return 0;
+    }
     
     switch(gps_pvt_type)
     {